
#include "member_BSpacer.h"
#include "member_BLayout.h"

using namespace BWE;

member_BSpacer::member_BSpacer(BSpacer* spacer)
{
	boss = spacer;
	layout = 0;
	minSize.set(0, 0);
	maxSize.set(99999, 99999);
	sizeStretch = 1.0f;
	sizePolicy.setPolicy(Policy_Expanding, Policy_Expanding);
}
member_BSpacer::~member_BSpacer()
{

}

void member_BSpacer::dirtyLayout()
{
	if (layout)
	{
		layout_member(layout)->dirty = true;
		if (layout_member(layout)->host)
		{
			layout_member(layout)->host->fresh();
		}
	}
}
